package com.qaml.mes.device.repository;

import com.qaml.mes.device.dao.HolidayApplyDO;
import com.qaml.mes.device.dto.eqp.HolidayApplyDTO;

import java.util.Date;
import java.util.List;


/**
 * @ClassName HolidayApplyRepository
 * @Description TODO
 * @Author leikai
 * @Date 2024/3/4 0004 11:25
 * @Version 1.0
 */
public interface HolidayApplyRepository {

    List<HolidayApplyDO> selectByDateAndType(Date startDateByMonth, Date endDateByMonth, String type);

    /**
     * 创建假期申请单
     *
     * @param holidayApplyDO
     */
    void createHolidayApply(HolidayApplyDO holidayApplyDO);

    /**
     * 获取假期申请单
     *
     * @param holidayApplyDTO
     * @return
     */
    HolidayApplyDO getHolidayApply(HolidayApplyDTO holidayApplyDTO);

    /**
     * 根据id获取
     *
     * @param id
     * @return
     */
    HolidayApplyDO getById(String id);

    /**
     * 通过ID更新
     *
     * @param holidayApplyDO
     */
    void updateById(HolidayApplyDO holidayApplyDO);
}